﻿using OpenBlock.Block.Blocks;
using OpenBlock.Terrain;
using OpenBlock.Terrain.BlockModels;
using System.Collections.Generic;

namespace OpenBlock.Block
{
    public class BlockRegistry
    {
        public static Dictionary<BlockId, IBlock> blocks = new Dictionary<BlockId, IBlock>();

        static BlockRegistry()
        {
            blocks.Add(BlockId.RGBBlock, new CommonBlock(0.1f, new RGBBlockModel()));
            blocks.Add(BlockId.Stone, new CommonBlock(2.0f, new CommonBlockModel(1)));
            blocks.Add(BlockId.Dirt, new CommonBlock(0.9f, new CommonBlockModel(2)));
            blocks.Add(BlockId.Grass, new CommonBlock(1.0f, new GrassBlockModel()));
            blocks.Add(BlockId.CraftingTable, new CommonBlock(1.5f, new CommonBlockModel(59, 43, 60, 59, 4, 60)));
            blocks.Add(BlockId.Furnance, new CommonBlock(2.0f, new CommonBlockModel(45, 62, 44, 45, 62, 45)));
            blocks.Add(BlockId.TNT, new TNTBlock());
            blocks.Add(BlockId.Log, new CommonBlock(1.5f, new PillarBlockModel(21, 20)));
        }
    }
}
